.pdfViewer {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #f5f5f5;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: white;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  z-index: 10;
  position: sticky;
  top: 0;
}

.pageControls, .zoomControls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolButton {
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: white;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.toolButton:hover:not(:disabled) {
  background-color: #f0f0f0;
  border-color: #ccc;
}

.toolButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pageInfo, .zoomInfo {
  font-size: 14px;
  color: #666;
  min-width: 100px;
  text-align: center;
  user-select: none;
}

.pdfContainer {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  background-color: #f5f5f5;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.document {
  margin: 0 auto;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-bottom: 40px;
}

.pageWrapper {
  position: relative;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
  will-change: transform, opacity;
}

.pageWrapper:last-child {
  margin-bottom: 0;
}

.page {
  display: block;
  position: relative;
  background-color: white;
  margin: 0;
  padding: 0;
}

.annotationLayer {
  position: absolute !important;
  top: 0;
  left: 0;
  pointer-events: all;
  user-select: none;
}

/* 添加滚动条样式 */
.pdfContainer::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.pdfContainer::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.pdfContainer::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.pdfContainer::-webkit-scrollbar-thumb:hover {
  background: #555;
} 